AECountItems
AECountItems Count number of descriptor records in a descriptor list long *theCount ; the number of descriptor records
You can use the AECountItems function to count the number of descriptor records in any descriptor list.
The parameter theAEDescList is the descriptor list to be counted.
list in the parameter theCount.
For an example program showing use of AECountItems, see the description Result codes
noErr (0) No error
errAENotAEDesc (-1704) Not a valid descriptor record